﻿// Write a program that compares two char arrays lexicographically (letter by letter).


using System;

    class TwoCharsArrays
    {
        static void Main()
        {
            int n = int.Parse(Console.ReadLine());
            char[] arrayFirst = new char[n];
            char[] arraySecond = new char[n];

            for (int i = 0; i < arrayFirst.Length; i++)
            {
                Console.Write("Please enter element of the first array: ");
                arrayFirst[i] = char.Parse(Console.ReadLine());
            }
            for (int i = 0; i < arraySecond.Length; i++)
            {
                Console.Write("Please enter element of the second array: ");
                arraySecond[i] = char.Parse(Console.ReadLine());
            }
            for (int i = 0; i < arrayFirst.Length; i++)
            {
                if (arrayFirst[i] == arraySecond[i])
                {
                    continue;
                }
                else
                {
                    Console.WriteLine("The two arrays are not equal."); return;
                }
            }
            Console.WriteLine("The two arrays are equal.");

        }
    }

